package vip.xiaonuo.smzq.modular.kcl.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import vip.xiaonuo.smzq.modular.kcl.entity.Zycl;
import com.baomidou.mybatisplus.extension.service.IService;
import vip.xiaonuo.smzq.modular.kcl.entity.vo.ReservesEdit;
import vip.xiaonuo.smzq.modular.kcl.entity.vo.ResourceReserves;

import java.util.List;

/**
 * 资源储量 服务类
 *
 * @author eomer
 * @since 2024-02-22
 */
public interface IZyclService extends IService<Zycl> {

    Page<Zycl> page(Zycl zycl);

    /**
     * 资源储量列表查询
     */
    List<ResourceReserves> getResourceReservesList(String kqbm, Integer djflbm, Integer nd);

    /**
     * 同矿年度下拉框
     */
    List<Integer> getNdList(String kqbm, Integer djflbm);

    /**
     * 批量添加资源储量
     */
    Integer addList(List<Zycl> zycls);

    /**
     * 资源储量填报编辑列表查询
     */
    List<ReservesEdit> getReservesEditList(String kqbm, Integer djflbm, Integer nd);

    /**
     * 添加资源储量及其相关
     */
    String addReserves(List<ReservesEdit> reservesList);

    List<Zycl> selectList(QueryWrapper<Zycl> queryWrapperZycl);

    boolean synchronizationZyclData(String kqbh, Integer djflbh, Integer nd);

    boolean synchronizationZycl(String psbabh,String time);
}
